home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
coding
/
80x86
/
code32.lzh
/
STRLEN.RT
< prev
next >
Wrap
Text File
|
1993-01-09
|
477b
|
22 lines
public _strlen
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
; Get length of ASCIIZ string
; In:
; EDX -> string
; Out:
; EAX - length
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
_strlen:
push ecx
push edi
mov edi,edx
mov ecx,-1
xor al,al
repnz scasb
mov eax,-2
sub eax,ecx
pop edi
pop ecx
ret